package com.zyk.service.impl;

import com.zyk.entity.UserRole;
import com.zyk.mapper.UserRoleMapper;
import com.zyk.service.IUserRoleService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户角色 服务实现类
 * </p>
 *
 * @author feifeimao
 * @since 2017-11-20
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;

    public List<Long> selectId(Long id) {
        return userRoleMapper.findRoleList(id);
    }
}
